package main

import (
	"fmt"
	"github.com/gofiber/fiber"
	"gowork/nbaSchedule/controller"
	"gowork/nbaSchedule/utils"
)

func main()  {
	w := new(utils.Worker)
	for i:=1; i<=15; i++ {
		fmt.Println(w.GetId())
	}

	app := fiber.New()

	nsc := new(controller.NbaScheduleController)
	app.Post("/generateMovieTickets", nsc.GenerateMovieTickets)
	app.Post("/querySchedule", nsc.QuerySchedule)
	app.Post("/ranking", nsc.Ranking)
	app.Post("/playerList", nsc.PlayerList)
	app.Post("/teamList", nsc.TeamList)
	app.Post("/queryTheBest", nsc.QueryTheBest)

	app.Listen(3724)
}
